# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-i8200
pkgdesc="Samsung SIII mini Value Edition"
pkgver=0.1
pkgrel=6
url="https://postmarketos.org"
license="MIT"
arch="armhf"
options="!check !archcheck"
depends="postmarketos-base linux-samsung-i8200 mkbootimg mesa-dri-swrast"
makedepends="devicepkg-dev"
source="deviceinfo"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"

nonfree_firmware() {
	pkgdesc="Wi-Fi and bluetooth firmware"
	depends="linux-firmware-mrvl"
	mkdir "$subpkgdir"
}

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

sha512sums="864169b3fde5f6ed64d7e59c2b43d06ce62e8276166c543cc0a730116ea3a48bbff8d25d19650109db64d5691e560b3ac56d9b8205b09bf6b581fb5fc9d4ea30  deviceinfo"
